package com.ckx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ckx.domain.dto.RoleAddDto;
import com.ckx.domain.dto.RoleDto;
import com.ckx.domain.dto.RoleUpdateDto;
import com.ckx.domain.entity.Role;
import com.ckx.domain.vo.PageVo;
import com.ckx.domain.vo.RoleVo;

import java.util.List;

/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-08-01 17:27:46
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long userId);

    PageVo selectByPage(Integer pageNum, Integer pageSize, Role role);

    void addRole(RoleAddDto roleAddDto);

    void changeStatus(RoleDto roleDto);

    Role getRoleInfo(Long id);

    void updateRole(RoleUpdateDto roleUpdateDto);

    void del4DelFlag(Long id);

    List<RoleVo> listAllRole();
}

